<?php
namespace Admin\Models\pm;
use Admin\Models\pm\basicModel;

class XhpmProject extends basicModel
{
    /**
     *
     * @var integer
     * @Primary
     * @Identity
     * @Column(type="integer", length=10, nullable=false)
     */
    public $iProjectId;

    /**
     * @var string
     * @Column(type="string", length=100, nullable=true)
     */
    public $sProjectName;

    /**
     *
     * @var integer
     * @Column(type="tinyint", length=1, nullable=true)
     */
    public $iProjectType;

    /**
     * @var string
     * @Column(type="string", length=300, nullable=true)
     */
    public $sProjectIntroduce;


    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $iParentPid;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $sProjectVersion;


    /**
     *
     * @var string
     * @Column(type="int", nullable=true)
     */
    public $iProductId;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $iProjectGrade;

    /**
     *
     * @var integer
     * @Column(type="integer", length=4, nullable=true)
     */
    public $bDelete;

    /**
     *
     * @var integer
     * @Column(type="integer", length=4, nullable=true)
     */
    public $bArchived;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tCreateDate;

    /**
     *
     * @var string
     * @Column(type="string", length=20, nullable=true)
     */
    public $iCreateUserId;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tLastModifyDate;

    /**
     *
     * @var string
     * @Column(type="string", length=20, nullable=true)
     */
    public $iLastModifyUserId;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tFromAt;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tEndAt;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tStartedAt;


    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tFinishedAt;

    /**
     *
     * @var integer
     * @Column(type="tinyint", length=1, nullable=true)
     */
    public $iProjectStatus;

    /**
     *
     * @var integer
     * @Column(type="tinyint", length=1, nullable=true)
     */
    public $iPauseStatus;

    /**
     *
     * @var integer
     * @Column(type="integer", length=4, nullable=true)
     */
    public $bChecked;

    public function initialize()
    {
        $this->setSource("XHPm_Project");
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'XHPm_Project';
    }


    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhpmProject[]|XhpmProject
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhpmProject
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

}
